#include "lock.h"

void lock_read(FILE *stream,long *id)
{
	//make sure previous write operations
	//finish
	fflush(stream);
	//make sure we read from start of file
	rewind(stream);
	fscanf(stream,"%ld",id);
}
